cmake_minimum_required(VERSION 2.8)
project(Gb28181)

#common
file(GLOB DIR_SRCS ${CMAKE_CURRENT_LIST_DIR}/*.h
					${CMAKE_CURRENT_LIST_DIR}/*.cpp)
				 
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_CRTDBG_MAP_ALLOC -D__STDC_LIMIT_MACROS)

list(APPEND LIBS ws2_32 Gb eXosip osip2 osipparser2 libcares)
link_directories(${CMAKE_CURRENT_LIST_DIR}/../build/Gb28181/Debug)
link_directories(${CMAKE_CURRENT_LIST_DIR}/../lib)
#include_directories(include)
include_directories(../Gb28181)
include_directories(../Common)

link_libraries(${LIBS})
#添加宏定义

add_executable(GbTest ${DIR_SRCS})

